﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace sonic.Samples.Infrastructure.Model
{
    public class Coordinates : DomainObject
    {
        private double _Latitude;
        private double _Longitude;

        public Coordinates()
            : base()
        {
        }

        public Coordinates(double latitude, double longitute)
            : this()
        {
            this._Latitude = latitude;
            this._Longitude = longitute;
        }

        public double Latitude
        {
            get { return _Latitude; }
            set
            {
                if (value != _Latitude)
                {
                    _Latitude = value;
                    base.NotifyPropertyChanged("Latitude");
                }
            }
        }

        public double Longitude
        {
            get { return _Longitude; }
            set
            {
                if (value != _Longitude)
                {
                    _Longitude = value;
                    base.NotifyPropertyChanged("Longitude");
                }
            }
        }
    }
}
